package cn.iune.platform.portal;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Transient;
import javax.persistence.Version;

import com.justep.baas.data.RowState;

@Entity
@Table(name="ArticleTech")
@NamedQuery(name="ArticleTech.findAll", query="SELECT s FROM ArticleTech s")
public class ArticleTech {

	@Id
	@Column(length=32)
	private String fID;
	
	@Column(length=100)
	private String sTitle;
	@Column(length=50)
	private String originalName;
	@Column(length=50)
	private String sAuthor;
	private Date orderDate;
	@Column(length=100)
	private String sKeyWords;
	
	
	@Column(length=256)
	private String summary;//需求简介
	@Column(length=20000)
	private String sDescription;//描述
	
	
	@Column(length=32)
	private String tradeID;//需求类别
	
	@Version
	private int version = 0;
	
	@Transient//非持久字段
	private RowState rowState;
	public RowState getRowState() {
		return rowState;
	}
	public void setRowState(RowState rowState) {
		this.rowState = rowState;
	}


	public int getVersion() {
		return version;
	}

	public void setVersion(int version) {
		this.version = version;
	}
	public String getfID() {
		return fID;
	}
	public void setfID(String fID) {
		this.fID = fID;
	}
	
	
	public String getsTitle() {
		return sTitle;
	}
	public void setsTitle(String sTitle) {
		this.sTitle = sTitle;
	}
	public String getOriginalName() {
		return originalName;
	}
	public void setOriginalName(String originalName) {
		this.originalName = originalName;
	}
	public String getsAuthor() {
		return sAuthor;
	}
	public void setsAuthor(String sAuthor) {
		this.sAuthor = sAuthor;
	}
	public Date getOrderDate() {
		return orderDate;
	}
	public void setOrderDate(Date orderDate) {
		this.orderDate = orderDate;
	}
	public String getsKeyWords() {
		return sKeyWords;
	}
	public void setsKeyWords(String sKeyWords) {
		this.sKeyWords = sKeyWords;
	}
	public String getSummary() {
		return summary;
	}
	public void setSummary(String summary) {
		this.summary = summary;
	}
	public String getsDescription() {
		return sDescription;
	}
	public void setsDescription(String sDescription) {
		this.sDescription = sDescription;
	}
	public String getTradeID() {
		return tradeID;
	}
	public void setTradeID(String tradeID) {
		this.tradeID = tradeID;
	}

	
}
